{% extends "base.html" %}

{% block title %}List of Stores{% endblock %}

{% block content %}
<table  class="contentresultslist" cellspacing="0">
{% if store_list %}
    <tr>
	<td class="columnhead">Name
	</td>
	<td class="columnhead">Telephone
	</td>
	<td class="columnhead">Dynamic Feed
	</td>
	<td class="columnhead">Feed Base URL
	</td>
	<td class="columnhead">View
	</td>
	<td class="columnhead">Update
	</td>	
	</tr>
    {% for lineitem in store_list %}
        <tr class="contentresultsrow">
        <td class="contentresultsdata">{{ lineitem.name }}</td>
		<td class="contentresultsdata">{{ lineitem.telephone }}</td>
		<td class="contentresultsdata">{{ lineitem.dynamicfeed }}</td>
		<td class="contentresultsdata">{{ lineitem.feedbaseurl }}</td>
		<td class="contentresultsdata"><a href="{{ lineitem.siteurl }}">view</a></td>
		<td class="contentresultsdata"><a href="{{ lineitem.key }}/update">update</a></td>
        </tr>
    {% endfor %}

{% else %}
    <tr><td>No Stores are available.</td></tr>
{% endif %}
</table>
<a href="add/">Add a new Store</a>
{% endblock %}
